<?php

/**
 * Thrown to indicate that the application has attempted to convert a string 
 * to one of the numeric types, but that the string does not have the appropriate format.<br />
 * This class allows user to filter on selection kind.
 */
class NumberFormatException extends IllegalArgumentException {

  /**
   * Store the parameter in private of IllegalArgumentException class.<br />
   *
   * @param string $message The message of the exception.
   * @link http://be2.php.net/manual/en/class.exception.php
   * @link http://fr2.php.net/manual/en/function.is-string.php
   * @link http://be.php.net/manual/en/function.empty.php
   */
  public function __construct($message) {
    if (is_string($message) && !empty($message))
      $this->message = $message;
    else
      throw new IllegalArgumentException("The \$message parameter must be a string.");
  }

}
?>
